package com.xiaoge.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaoge.system.entity.User;
import com.xiaoge.system.entity.image;
import com.xiaoge.system.mapper.ImageMapper;
import com.xiaoge.system.mapper.UserMapper;
import com.xiaoge.system.service.ImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ImageServiceImpl extends ServiceImpl<ImageMapper, image> implements ImageService {

    @Autowired
    private image image;
    @Override
    public void saveImage(String imageUrl,Long userid) {
        image.setPath(imageUrl);
        image.setUserid(userid);
        this.baseMapper.insert(image);
    }


}
